package com.bdd.model.bo;


import com.bdd.entity.ClothingDiscount;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class DiscountBO {
    private Integer id;

//    @ApiModelProperty(value = "商品编号")
//    private Integer clothingId;
//
//    @ApiModelProperty(value = "商品名称")
//    private String clothingName;
//
////    @ApiModelProperty(value = "规格")
////    private String size;
//
//    @ApiModelProperty(value = "原价")
//    private Double price;
//
    @ApiModelProperty(value = "折扣")
    private String discounts;

//    @ApiModelProperty(value = "优惠价格")
//    private Double totalPrice;

    @ApiModelProperty(value = "折扣类型")
    private String type;

    @ApiModelProperty(value = "优惠名称")
    private String promotionName;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "促销是否有效")
    private Integer status;
}
